#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>

#include "controller/pushBtn//pushbtncontroller.h"
#include "controller/trainInformation/informationcontroller.h"
#include "controller/systemInformation/systemstatecontroller.h"
#include "controller/menu/specialmenucontroller.h"
#include "controller/setting/settingscontroller.h"
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    QWidget *mainWidget;
    //垂直布局
    QHBoxLayout *hLayout;
    //左边widget
    InformationController *informationController;
    //中间widget
    SystemStateController *systemStateController;
    //右边widget
    PushBtnController *pushBtnController;
    //菜单
    SpecialMenuController *specialMenuController;
    //设置
    SettingsController *settingsController;
private:
    void correlationFunction();
    void keyPressEvent(QKeyEvent *event);
    void keyReleaseEvent(QKeyEvent *event);


private slots:
    void didClickModeBtnFun();//打开关闭菜单
    void didClickSettingBtnFun();//打开关闭菜单
};


#endif // MAINWINDOW_H


